<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/16
  Time: 16:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
</head>
<style>
    #table{
        position: absolute;
        float: left;
        top: 10%;
        left: 10%;
    }
    th{
        width: 200px;
    }
    table{
        border-color: #eeeeee;
    }
</style>
<body>
<div id="table">

    <table border="1px">
        <tr id="trid">
            <th>房型图片</th>
            <th>房型</th>
            <th>入住人</th>
            <th>手机号</th>
            <th>身份证号</th>
            <th>状态</th>
            <th>下单时间</th>
        </tr>
        <c:forEach items="${enterM}" var="enter">
            <tr>
                <td></td>
                <td>${enter.type}</td>
                <c:forEach items="${enter.customers}" var="customer">
                    <td>${customer.name}</td>
                    <td>${customer.phone}</td>
                    <td>${customer.card}</td>
                </c:forEach>
                <td>
                    <c:if test="${enter.state==1}">已预定</c:if>
                    <c:if test="${enter.state==0}">未预定</c:if>
                </td>
                <td>${enter.start_time}</td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
